projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecec126
)
i386: Fix the build.
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 1 May 2008 14:44:35 +0000
(15:44 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 1 May 2008 14:44:35 +0000
(15:44 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/acpi/boot.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/acpi/boot.c
b/xen/arch/x86/acpi/boot.c
index a9c013e8eb5a161d2e97a4568f19b6403614c7a6..6ff77d3566ea19f018df7dc2644e74ac07b9916d 100644
(file)
--- a/
xen/arch/x86/acpi/boot.c
+++ b/
xen/arch/x86/acpi/boot.c
@@
-465,8
+465,9
@@
bad:
static void __init
acpi_fadt_parse_reg(struct acpi_table_fadt *fadt)
{
- unsigned int len
= min(fadt->header.length, sizeof(*fadt))
;
+ unsigned int len;
+ len = min_t(unsigned int, fadt->header.length, sizeof(*fadt));
memcpy(&acpi_gbl_FADT, fadt, len);
if (len > offsetof(struct acpi_table_fadt, xpm1b_event_block)) {